package com.xbn.xbnmall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xbn.common.utils.PageUtils;
import com.xbn.xbnmall.order.entity.OrderEntity;
import com.xbn.xbnmall.order.vo.OrderConfirmVo;
import com.xbn.xbnmall.order.vo.OrderSubmitVo;
import com.xbn.xbnmall.order.vo.SubmitOrderResponseVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author XBN
 * @email 78742541@qq.com
 * @date 2020-06-27 13:55:37
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void close(OrderEntity entity);
}

